home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / IDL / MenuBarB.idl < prev    next >
Encoding:
Text File  |  1994-04-19  |  1.6 KB  |  73 lines  |  [TEXT/MPS ]

  1. //# Copyright:    © 1993-94 by Apple Computer, Inc., all rights reserved.
  2. #ifndef _MENUBARB_
  3. #define _MENUBARB_
  4.  
  5. #ifndef _REFCTOBJ_
  6. #include "RefCtObj.idl"
  7. #endif
  8.  
  9. //=====================================================================================
  10. // Classes defined in this interface
  11. //=====================================================================================
  12.  
  13. interface  ODBaseMenuBar;
  14.  
  15. //=====================================================================================
  16. // Classes used by this interface
  17. //=====================================================================================
  18.  
  19. interface  ODMenuBar;
  20. interface  ODSession;
  21. interface  ODPart;
  22.  
  23. //=====================================================================================
  24. // Class ODBaseMenuBar
  25. //=====================================================================================
  26.  
  27. interface ODBaseMenuBar :  ODRefCntObject
  28. {
  29.     void Display();
  30.  
  31.     ODMenuBar Copy();  
  32.  
  33.     void AddMenuLast(in ODMenuID menuID,
  34.                      in ODPlatformMenu menu,
  35.                      in ODPart part);
  36.  
  37.     void AddMenuBefore(in ODMenuID menuID,
  38.                        in ODPlatformMenu menu,
  39.                        in ODPart part,
  40.                        in ODMenuID beforeID);
  41.     
  42.     void RemoveMenu(in ODMenuID menu);  
  43.  
  44.     ODPlatformMenu GetMenu(in ODMenuID menu);  
  45.  
  46.  
  47. #ifdef __SOMIDL__
  48.  
  49.     implementation
  50.       {
  51.     override:
  52.         somInit,
  53.         somUninit,
  54.         Release;
  55.         
  56.     releaseorder:
  57.         Display,
  58.         Copy,
  59.         AddMenuLast,
  60.         AddMenuBefore,
  61.         RemoveMenu,
  62.         GetMenu,
  63.             reserved1;
  64.  
  65.         majorversion = 1; minorversion = 0;
  66.         
  67.      };
  68. #endif //# __SOMIDL__
  69.  
  70. };
  71.  
  72. #endif //# _MENUBARB_
  73.